//
//  informationViewController.m
//  08-HomeWork
//
//  Created by dllo on 16/7/25.
//  Copyright © 2016年 DM.C. All rights reserved.
//

#import "informationViewController.h"
#define WIDTH self.view.bounds.size.width
@interface informationViewController ()

@end

@implementation informationViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
//    self.view.backgroundColor = [UIColor redColor];
    [self createLabel];
    self.navigationItem.title = @"通讯录详细信息";
    
}
- (void)createLabel {
    // 背景图片
    UIImageView *image = [[UIImageView alloc] initWithFrame:[UIScreen mainScreen].bounds];
    image.image = [UIImage imageNamed:@"guidePage_02"];
    [self.view addSubview:image];
    // 创建四个label
    UILabel *label_number = [[UILabel alloc] initWithFrame:CGRectMake(200, 280, WIDTH - 150, 50)];
    UILabel *label_age = [[UILabel alloc] initWithFrame:CGRectMake(200, 220, WIDTH - 150, 50)];
    UILabel *label_gender = [[UILabel alloc] initWithFrame:CGRectMake(200, 160, WIDTH - 150, 50)];
    UILabel *label_name = [[UILabel alloc] initWithFrame:CGRectMake(200, 100, WIDTH - 150, 50)];
    // 给四个label赋值
    label_number.text = _string_number;
    label_gender.text = _string_gender;
    label_age.text = _string_age;
    label_name.text = _string_name;
    // 创建四个提示label
    UILabel *label_number_title = [[UILabel alloc] initWithFrame:CGRectMake(50, 280, 100, 50)];
    UILabel *label_age_title = [[UILabel alloc] initWithFrame:CGRectMake(50, 220, 100, 50)];
    UILabel *label_gender_title = [[UILabel alloc] initWithFrame:CGRectMake(50, 160, 100, 50)];
    UILabel *label_name_title = [[UILabel alloc] initWithFrame:CGRectMake(50, 100, 100, 50)];
    // 居右
    label_name_title.textAlignment = NSTextAlignmentRight;
    label_age_title.textAlignment = NSTextAlignmentRight;
    label_gender_title.textAlignment = NSTextAlignmentRight;
    label_number_title.textAlignment = NSTextAlignmentRight;
    // 赋值
    label_age_title.text = @"年 龄:";
    label_gender_title.text = @"性 别:";
    label_name_title.text = @"姓 名:";
    label_number_title.text = @"电话号码:";
    // 将label添加到背景图片上
    [image addSubview:label_age];
    [image addSubview:label_gender];
    [image addSubview:label_number];
    [image addSubview:label_name];
    [image addSubview:label_age_title];
    [image addSubview:label_gender_title];
    [image addSubview:label_number_title];
    [image addSubview:label_name_title];
    
   
    
}









- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
